package com.shenyong.ladmin.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * Create By:qiang
 * Date: 2019/11/25 15:08
 * 文件说明: Menu
 */
public class Menu {
    private int menu_id;// 菜单编号
    private String menu_name;// 菜单名字
    private String menu_url;// 菜单地址
    private int menu_menuId;// 父菜单编号
    private boolean checked;
    private boolean spread;
    private List<Menu> children = new ArrayList<>();

    public Menu() {
    }

    public Menu(int menu_id, String menu_name, String menu_url, int menu_menuId, boolean checked, boolean spread, List<Menu> children) {
        this.menu_id = menu_id;
        this.menu_name = menu_name;
        this.menu_url = menu_url;
        this.menu_menuId = menu_menuId;
        this.checked = checked;
        this.spread = spread;
        this.children = children;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public int getMenu_id() {
        return menu_id;
    }

    public void setMenu_id(int menu_id) {
        this.menu_id = menu_id;
    }

    public String getMenu_name() {
        return menu_name;
    }

    public void setMenu_name(String menu_name) {
        this.menu_name = menu_name;
    }

    public String getMenu_url() {
        return menu_url;
    }

    public void setMenu_url(String menu_url) {
        this.menu_url = menu_url;
    }

    public int getMenu_menuId() {
        return menu_menuId;
    }

    public void setMenu_menuId(int menu_menuId) {
        this.menu_menuId = menu_menuId;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menu_id=" + menu_id +
                ", menu_name='" + menu_name + '\'' +
                ", menu_url='" + menu_url + '\'' +
                ", menu_menuId=" + menu_menuId +
                ", checked=" + checked +
                ", spread=" + spread +
                ", children=" + children +
                '}';
    }
}
